/*
 * @Author: 毕晨曦
 * @Date: 2023-08-16 13:08:48
 * @LastEditors: lihaonan
 * @LastEditTime: 2024-06-26 22:02:05
 * @FilePath: /production_unit/src/api/login.ts
 * @Description: 登陆注册
 */
import fly from "@/utils/http";

// 小程序注册接口
export const register = (data: { code: string }) => {
  return fly.get("/wechat/auth/register", data);
};

// 小程序注册接口
export const registerTemp = (data: { number: string }) => {
  return fly.get("/wechat/auth/register", data);
};

// 获取角色
export const getMember = (id: string) => {
  return fly.get(`/app/member/${id}`);
};
export const getAccount = (id: string) => {
  return fly.get(`/app/account/${id}`);
};

// 小程序登陆接口
export const login = (data: object) => {
  return fly.post("/wechat/auth/login", data);
};
